class Supplier {
    String supplierName
    String mobile
    String telephone
    String email
    String address
    String postcode
    String fax
    String remarks

    static constraints = {
        supplierName (blank:false)
        email(email:true)
        mobile(size:5..15)
        telephone(size:5..15)
        remarks (type:'text')
    }

    static hasMany = [products:Product]

    String toString () {
        return supplierName
    }
}
